<?php
/**
 * Created by PhpStorm.
 * User: 1
 * Date: 2018/3/23
 * Time: 14:53
 */

namespace app\api\controller\v1;

use think\Db;
use think\Log;
use app\common\lib\exception\ApiException;
use app\api\model\LessonNumTime as M;

class LessonNumTime extends Common
{
    /**
     * @ 获取课程时间信息
     * @param id int 必传 课程id
     * @author 巫玉梅 <1120504614@qq.com>
     * @return ApiException|array|string|\think\response\Json
     */

    public function lesson_time(){
        $time = (new M())->getLessonTime();
        return $time;
    }
    /*
    * @编辑课时信息
    * @param lesson_id int 必传
    * @author 巫玉梅 <1120504614@qq.com>
    * @return ApiException|array|string|\think\response\Json
    */
    public function edit(){
        $result = (new M())->editLessonTime();
        return $result;
    }
}